package com.mapper;

import com.pojo.Parkingcar;
import com.vo.ParkingCarSelectVo;
import com.vo.ParkingCarVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ParkingcarMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Parkingcar record);

    int insertSelective(Parkingcar record);

    Parkingcar selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Parkingcar record);

    int updateByPrimaryKey(Parkingcar record);

    public int insertall(ParkingCarVo parkingCarVo);
    /**
     * 查询所有
     */
    public List<Parkingcar> selectall(ParkingCarSelectVo parkingCarSelectVo);
    /**
     * 查询所有
     */
    public List<Parkingcar> selectalls();

    /**
     * 修改缴费单外键
     */
    public int updateCarmoneyById(@Param("carmoney") Integer carmoney, @Param("id") Integer id);

    /**
     * 根据场内车俩id查询缴费id
     */
    public int selectCarmoneyByIdInt(Integer id);


    public List<Parkingcar> selectParkingcarByOwnerid(Integer ownerid);
    public int updateParkingCarStateById(Integer id);
    public int updateParkingLotStateByTwo(ParkingCarVo parkingCarVo);

    /**
     * 根据id查询
     */

    Parkingcar selectByid(Integer id);


    /**
     * 根据parklotid查询
     */
    Parkingcar selectByparking(Integer id);
    /***
     * 查询所有车位的业主
     * @return
     */
    public List<Integer> selectowneridHaveCar();
}